package com.example.wanxiang.service;

import com.example.wanxiang.dto.ArticleDto;
import com.example.wanxiang.entity.Article;

import java.util.List;

public interface ArticleService {

    List<Article> findByTitle(String title);

    List<Article> getArticleByTitle(ArticleDto articleDto);

    long getArticleCount(ArticleDto articleDto);

    Article findById(String id);

    List<Article> findAll();

    Article save(Article article);

    void deleteById(String id);

    Article update(String id, Article article);

}
